// 使用 express 模拟一个 上线的服务器
const express = require('express')
const { createProxyMiddleware } = require('http-proxy-middleware');
const app = express();
app.use(express.static('./build'))
app.use('/api', createProxyMiddleware({ target: 'https://www.ahsj.link/rambo', changeOrigin: true, pathRewrite: (path) => path.replace('/api', '') }));
app.listen(8888)